package com.leon.spring_security_oauth2.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.leon.spring_security_oauth2.dao.SysUserDao;
import com.leon.spring_security_oauth2.entity.SysUser;
import com.leon.spring_security_oauth2.service.SysUserService;
import com.leon.spring_security_oauth2.vo.UserVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUser> implements SysUserService {

    @Autowired
    private SysUserDao sysUserDao;

    @Override
    public UserVO findUserByUsername(String username) {
        return sysUserDao.selectUserVoByUsername(username);
    }
}
